#!/bin/bash
import tensorflow as tf

# 进入交互式会话
sess = tf.InteractiveSession()


x = tf.Variable([1.0, 2.0])
a = tf.constant([3.0, 3.0])

x.initializer.run()

# 此处找不到sub函数？？？
sub = tf.sub(x, a)
print(sub.eval())